import java.io.Console;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2022/3/20
 * \* Time: 20:30
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */
public class TestDemo {


    public static void main(String[] args){
        Scanner in=new Scanner(System.in);
        while(in.hasNext()){
            String[] temp=in.nextLine().split(" ");
            int sum=0;
            for(String s:temp)
                sum+=Integer.valueOf(s);
            System.out.println(sum);
        }
    }

    public static void main5(String[] args){
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        while(n > 0){
            int a=in.nextInt();
            int b=in.nextInt();
            System.out.println(a+b);
            n--;
        }
    }




    public static void main4(String[] args) {
        Scanner scanner = new Scanner(System.in);
      //  System.out.println("What is your name?");
       // String str = scanner.nextLine();
        //String str = scanner.next();

        Console console = System.console();
        String username = console.readLine("User name");
        char[] password = console.readPassword("Password:");
    }


    public static void main3(String[] args) {
        Scanner sc=new Scanner(System.in);
        String str1=sc.nextLine();
        String str2=sc.nextLine();

        Set<Character> set=new HashSet<>();
        for(int i=0;i<str2.length();i++){
            //将str2中的字符存到set中
            set.add(str2.charAt(i));
        }
        for(int i=0;i<str1.length();i++){
            char c=str1.charAt(i);
            if(set.contains(c)){
                //当set中包含当前字符，则跳过
                continue;
            }else{
                //不包含，输出
                System.out.print(c);
            }
        }
    }



    public static void main2(String[] args) {
        Scanner in = new Scanner(System.in);
        int T = in.nextInt();
        while(T>0){
            T--;//为了保证输出的第一行会换行
            //a和b分别放每组测试用例的第二行和第三行
            int[] a = new int[10000];
            int[] b = new int[10000];
            int n = in.nextInt();
            for(int i=1; i<=n; i++){
                a[i] = in.nextInt();
            }
            for(int i=1 ;i<=n; i++){
                b[i] = in.nextInt();
            }
        }//将输入带到function()方法里去运算
        //System.out.println(function(a,b));
    }


    public static void main1(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n=scan.nextInt();//定义需要的阶层数n
        int[][]array=new int[n][n];//定义一个n*n的数组array
        System.out.println("输入数组的各个元素：");
        for(int i=0;i<n;i++) {
            for (int j = 0; j < n; j++)
                array[i][j] = scan.nextInt();
        }
    }

}
